<div class="yiiForm">

<?php $JFV=Yii::app()->jformvalidate; ?>

<script type="text/javascript">$.getScript("/eduow_test/assets/fc4df835/jquery.validate.min.js", function(){
  $("#ejsvformid1").validate({"errorElement":"div","errorClass":"invalid","rules":{"Paper[title]":{"required":true,"maxlength":200},"Paper[author]":{"numerical":{"integerOnly":true,"notInt":"Author must be an integer.","msg":"Author must be a number."}},"Paper[language]":{"required":true,"maxlength":3},"Paper[description]":{"maxlength":250},"Paper[content]":{"required":true},"Paper[tags]":{"required":true},"Paper[image]":{"maxlength":100}},"messages":{"Paper[title]":{"required":"Title cannot be blank.","maxlength":"Title is too big (maximum is 200)."},"Paper[language]":{"required":"Language cannot be blank.","maxlength":"Language is too big (maximum is 3)."},"Paper[description]":{"maxlength":"Description is too big (maximum is 250)."},"Paper[content]":{"required":"Content cannot be blank."},"Paper[tags]":{"required":"Tags cannot be blank."},"Paper[image]":{"maxlength":"Image is too big (maximum is 100)."}}});

 });</script>
<script type="text/javascript">$.getScript("/eduow_test/assets/fc4df835/additional-methods.js");</script>
<script type="text/javascript">$.getScript("/eduow_test/assets/fc4df835/jquery.jfvalidate.helper.js");</script>



<form id="ejsvformid1" action="/eduow_test/paper/create" method="post">


	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo Html::errorSummary($model); ?>

	<div class="row">
		<?php echo Html::activeLabel($model,'title'); ?>
		<?php echo $JFV->activeTextField($model,'title',array('size'=>60,'maxlength'=>200)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'author'); ?>
		<?php echo $JFV->activeTextField($model,'author'); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'language'); ?>
		<?php echo $JFV->activeTextField($model,'language',array('size'=>3,'maxlength'=>3)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'description'); ?>
		<?php echo $JFV->activeTextField($model,'description',array('size'=>60,'maxlength'=>250)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'content'); ?>
		<?php echo $JFV->activeTextField($model,'content',array('rows'=>6, 'cols'=>50)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'tags'); ?>
		<?php echo $JFV->activeTextField($model,'tags',array('rows'=>6, 'cols'=>50)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'image'); ?>
		<?php echo $JFV->activeTextField($model,'image',array('size'=>60,'maxlength'=>100)); ?>
		
	</div>

	<div class="row">
		<?php echo Html::activeLabel($model,'created'); ?>
		<?php echo $JFV->activeTextField($model,'created'); ?>
		
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php echo $JFV->endForm(); ?>

</div><!-- form -->



